package org.alesv.entranceExams.service;

import org.alesv.common.collection.Trie;
import org.alesv.common.exceptions.ServiceException;

/**
 * 
 * @author asantamaria
 */
public interface WordsDictionaryService {

	Trie getWordsDictionary();

	boolean existWordWithPrefix(String prefix);

	boolean existWord(String word);

	int indexOfPrefix(String prefix);

	int indexOfPrefix(String prefix, int from);

	String getNextWinnerWord(String word) throws ServiceException;

	String getNextLooserWord(String word) throws ServiceException;
}
